# -*- coding: utf-8 -*-

import warnings

import pandas as pd
from sklearn import preprocessing

from ..base import CommonFunction


class OutliersHandler(CommonFunction):
    def auto_scale(self):
        scaler = preprocessing.RobustScaler()
        self._data = pd.DataFrame(scaler.fit_transform(self._data), columns=self._data.columns.values)
        return scaler
